<template>
  <div id="app">
    <!-- 头部 -->
    <Header></Header>
    <router-view/>
    <!-- 底部 -->
    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Header from './components/Header/Header.vue'
import Footer from './components/Footer/Footer.vue'
export default{
  data(){
    return{}
  },
  components:{
    Header,
    Footer
  },
  mounted(){
     this.$store.dispatch("categoryList");
  }
}
</script>

<style>
</style>
